A Tool for Model-Based Language Specification

نویسندگان

  • Luis Quesada
  • Fernando Berzal Galiano
  • Juan C. Cubero
چکیده

Syntax Tree Concrete Syntax Model Abstract Syntax Model instance of instance of Textual Representation Parser input output Figure 1 Traditional language processing approach. sign process. In principle, it might not be even necessary for the language designer to have advanced knowledge on parser generators when following a model-driven language specification approach. • A full-blown model-driven language workbench [18] would allow the modification of a language abstract syntax model and the automatic generation of a working IDE on the run. The specification of domain-specific languages would become easier, as the language designer could play with the language specification and obtain a fully-functioning language processor on the fly, without having to worry about the propagation of changes throughout the complete language processor tool chain. In short, the model-driven language specification approach brings domain-driven design [14] to the domain of language design. It provides the necessary infrastructure for what Evans would call the ‘supple design’ of language processing tools: the intention-revealing specification of languages by means of abstract syntax models, the separation of concerns in the design of language processing tools by means of declarative ASM-CSM mappings, and the automation of a significant part of the language processor implementation. C. Comparison with the Traditional Approach A diagram summarizing the traditional language design process is shown in Figure 1, whereas the corresponding diagram for the model-based approach proposed in this paper is shown in Figure 2. When following the traditional grammar-driven approach, the language designer starts by designing the grammar corresponding to the concrete syntax of the desired language, typically in BNF or a similar format. Then, the designer annotates the grammar with attributes and, probably, semantic actions, so that the resulting attribute grammar can be fed into lexer and parser generator tools that produce the corresponding lexer and parser, respectively. The resulting syntaxdirected translation process generates abstract syntax Context-Free Grammar e.g. BNF Conceptual Model Textual Representation Parser Abstract Syntax Graph Concrete Syntax Model Abstract Syntax Model instance of instance of

برای دانلود رایگان متن کامل این مقاله و بیش از 32 میلیون مقاله دیگر ابتدا ثبت نام کنید

ثبت نام

اگر عضو سایت هستید لطفا وارد حساب کاربری خود شوید

منابع مشابه

Context-Based Integrative Educational Technique in Profession-Oriented Foreign Language Teaching (Academic Model United Nations)

The aim of the article is to examine the Academic Model United Nations (Model UN) as a context-based integrative educational technique in profession-oriented foreign language teaching (FLT); to point out the context-based integrative nature of profession-oriented language learning and highlight the importance of using product-based educational techniques in FLT for developing students’ future p...

متن کامل

Web Service Choreography Verification Using Z Formal Specification

Web Service Choreography Description Language (WS-CDL) describes and orchestrates the services interactions among multiple participants. WS-CDL verification is essential since the interactions would lead to mismatches. Existing works verify the messages ordering, the flow of messages, and the expected results from collaborations. In this paper, we present a Z specification of WS-CDL. Besides ve...

متن کامل

Standardizing Model-Based IVI Development in the German Automotive Industry

Based on the analysis of existing HMI development processes in the automotive domain, a reference process for software engineering has been developed. This process was used to develop a domain data model and a model-based specification language in order to establish a common exchange format based on consistent domain knowledge. This approach provides a common ground for collaboration to OEMs, s...

متن کامل

A formal model for a requirements engineering tool

This paper presents the formal specification for a tool that models the functional requirements of a system based on use case models. The formal model of such a tool is made using Alloy, which is a lightweight modeling language. The structure of the model as well as an analysis of the model are specified using Alloy. As a complement of the formal model, a model diagram is also presented using t...

متن کامل

XMI2USE: A Tool for Transforming XMI to USE Specifications

The UML-based Specification Environment (USE) tool supports syntactic analysis, type checking, consistency checking, and dynamic validation of invariants and pre-/post conditions specified in the Object Constraint Language (OCL). Due to its animation and analysis power, it is useful when checking critical non-functional properties such as security policies. However, the USE tool requires one to...

متن کامل

Toward an Integrated Tool Environment for Static Analysis of UML Class and Sequence Models

There is a need for more rigorous analysis techniques that developers can use for verifying the critical properties in UML models. The UML-based Specification Environment (USE) tool supports verification of invariants, preconditions, and postconditions specified in the Object Constraint Language (OCL). Due to its animation and analysis power, it is useful when checking critical non-functional p...

متن کامل

ذخیره در منابع من


  با ذخیره ی این منبع در منابع من، دسترسی به آن را برای استفاده های بعدی آسان تر کنید

عنوان ژورنال:
  • CoRR

دوره abs/1111.3970  شماره 

صفحات  -

تاریخ انتشار 2011